export const shard = {
    title: "shard 类型",
    options: [
        {
            label: "属性名",
            prop: "name",
            width: "150px"
        },
        {
            label: "类型",
            prop: "type",
            width: "150px",
        },
        {
            label: "说明",
            prop: "explain",
        },
        {
            label: "默认值",
            prop: "default",
            width: "200px"
        },
    ],
    data: [
        {
            name: "x",
            type: "Number，必须",
            explain: "起始坐标--x",
        },
        {
            name: "y",
            type: "Number，必须",
            explain: "起始坐标--y",
        },
        {
            name: "color",
            type: "String，必须",
            explain: "颜色",
        },
        {
            name: "radius",
            type: "Number",
            explain: "半径",
            default: 1,
        },
        {
            name: "cross",
            type: "Number",
            explain: "横向偏移",
            default: "-1 ~ 1 之间的随机数",
        },
        {
            name: "vertical",
            type: "Number",
            explain: "纵向偏移",
            default: "-1 ~ 1 之间的随机数",
        },
        {
            name: "topple",
            type: "Number",
            explain: "下坠加速度",
            default: "默认 0.01",
        },
        {
            name: "alpha",
            type: "Number",
            explain: "透明度",
            default: "1",
        },
        {
            name: "decay",
            type: "Number",
            explain: "透明度减少速度",
            default: "0.01",
        },
        {
            name: "customDraw",
            type: "({x,y,color}, canvasContext) => void",
            explain: "自定义绘制方法,canvasContext 为画布对象",
        },
    ]
}